/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.bridge.sub.model;

import java.util.ArrayList;
import java.util.Collection;
import ru.jSkyRoom.bridge.JSkyBridge;
import ru.jSkyRoom.interfaces.sub.AltTexture;
import ru.jSkyRoom.interfaces.sub.JSkyModel;
import skyproc.ARMO;
import skyproc.AltTextures;
import skyproc.genenums.Gender;

/**
 *
 * @author Rakev
 */
public class ArmorModelBridge extends JSkyBridge<ARMO> implements JSkyModel {

    private Gender gender;

    public ArmorModelBridge(ARMO adapting, Gender gender) {
        super(adapting);
        this.gender = gender;
    }

    @Override
    public Collection<AltTexture> getAltTextures() {
        ArrayList<AltTextures.AltTexture> records = getRawObject().getAltTextures(gender);
        return (Collection) getBridgeFactory().createBridges(records);
    }

    @Override
    public String getPath() {
        return getRawObject().getModel(gender);
    }

    @Override
    public void setPath(String path) {
        getRawObject().setModel(path, gender);
    }
}
